package com.gitee.qdbp.jdbc.support.convert;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import org.springframework.core.convert.converter.Converter;

/**
 * Date转换为LocalDateTime
 *
 * @author zhaohuihua
 * @version 20211031
 */
public class DateToLocalDateTimeConverter implements Converter<Date, LocalDateTime> {

    @Override
    public LocalDateTime convert(Date source) {
        return DateConverter.convertToLocalDateTime(source);
    }
}
